<template>
  <div class="dy-main">
    <div class="dy-header">
      <x-header title="账户管理" :left-options="{backText: ''}"></x-header>
    </div>
    <div class="dy-body">
      <group gutter="0.2rem">
        <cell title="活期互转" is-link></cell>
        <cell title="定期互转" is-link></cell>
        <cell title="账户签约维护" is-link></cell>
        <cell title="账户挂失" is-link></cell>
        <cell title="动账通知查询" is-link></cell>
        <cell title="账户锁定" is-link></cell>
        <cell title="自动注销" is-link></cell>
      </group>
    </div>
    <!--<div class="dy-footer"></div>-->
  </div>
</template>
<script>

export default{
  data () {
    return {
      tabSelected: '1'
    }
  },
  methods: {
    goNext () {
      let _this = this
      window.WebViewJavascriptBridge.callHandler('nativeRequest',
        JSON.stringify({
          'requstSource': 'internetRequest',
          'url': 'mstep.do?act=business',
          'params': {'method_Name': 'CI005002', 'user_Data': { cardNo: _this.cardNo, cardholder: _this.cardholder, IDType: _this.IDType, IDNo: _this.IDNo, payPwd: _this.payPwd, smsCode: _this.smsCode }}
        }),
        function (response) {
          response = JSON.parse(response)
          if (response.status === 0 || response.status === '0') {
            let returnData = response.data.data[0]
            if (returnData.status === '成功') {
              _this.showPositionValue = true
              _this.status = 1
            } else {
              // todo 失败的展示
              _this.showPositionValue = true
              _this.status = 0
            }
          } else {
            console.log('fail')
          }
        })
    }
  }
}
</script>
<style lang="less" scoped>
  * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }
  .dy-main {
    width: 100%;
    height: 100%;
    font-size: .28rem;
  .dy-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: .88rem;
  }
  .dy-body {
    width: 100%;
    height: 100%;
    padding-top: .88rem
  }
}
</style>
